void npc(Player @player, NPC @npc) {
int state = npc.getState();
if(state == 0) {
npc.addText("Will you move to #b#m230000000##k now? The price is #b10000 mesos#k.");
npc.sendYesNo();
}
else if(state == 1) {
if(npc.getSelected() == YES) {
if(player.getMesos() >= 10000) {
player.giveMesos(-10000);
player.changeMap(230000000);
} else {
npc.addText("I don't think you have enough money...");
npc.sendNext();
}
} else {
npc.addText("Hmmm ...too busy to do it right now? If you feel like doing it, though, come back and find me.");
npc.sendOK();
}
npc.end();
}
}